package org.hcyspartnoc.luoxin.common.exception.searchtopic;

import org.hcyspartnoc.luoxin.common.exception.BaseException;

public class QuestionException extends BaseException {

    // 请求与服务器错误
    public static final String REQUEST_FAILED = "请求发送失败";
    public static final String SERVER_ERROR = "服务端错误";

    // 题目相关错误
    public static final String QUESTION_FORMAT_ERROR = "题目格式错误";
    public static final String QUESTION_TYPE_INVALID = "题目类型无效";
    public static final String QUESTION_OPTIONS_INVALID = "选择题的选项不合法";
    public static final String QUESTION_EMPTY = "题目内容不能为空";
    public static final String QUESTION_INSERT_FAILED = "题目插入失败";
    public static final String QUESTION_UPDATE_FAILED = "题目更新失败";
    public static final String QUESTION_NOT_FOUND = "未找到相关题目";
    public static final String FILE_ERROR = "文件处理失败";
    public static final String QUESTION_ERROR = "题目不存在";


    public QuestionException(String msg) {
        super(msg);
    }

    public QuestionException(String msg, int code) {
        super(msg, code);
    }
}
